We can drop the double suffix now.
<SUBSECTION>
gdk_device_get_state
-gdk_device_get_position_double
+gdk_device_get_position
gdk_device_get_surface_at_position
gdk_device_get_surface_at_position_double
gdk_device_get_history
}
/**
- * gdk_device_get_position_double:
+ * gdk_device_get_position:
* @device: pointer device to query status about.
* @x: (out) (allow-none): location to store root window X coordinate of @device, or %NULL.
* @y: (out) (allow-none): location to store root window Y coordinate of @device, or %NULL.
* unless there is an ongoing grab on them. See gdk_device_grab().
**/
void
-gdk_device_get_position_double (GdkDevice *device,
- gdouble *x,
- gdouble *y)
+gdk_device_get_position (GdkDevice *device,
+ double *x,
+ double *y)
{
GdkDisplay *display;
gdouble tmp_x, tmp_y;
gint *win_x,
gint *win_y);
GDK_AVAILABLE_IN_ALL
-void gdk_device_get_position_double (GdkDevice *device,
- gdouble *x,
- gdouble *y);
+void gdk_device_get_position (GdkDevice *device,
+ double *x,
+ double *y);
GDK_AVAILABLE_IN_ALL
GdkSurface *
gdk_device_get_surface_at_position_double
GDK_NOTE (DND, g_print ("_gdk_win32_surface_drag_begin\n"));
- gdk_device_get_position_double (device, &px, &px);
+ gdk_device_get_position (device, &px, &px);
x_root = round (px) + dx;
y_root = round (py) + dy;
precache_target_list (drag);
- gdk_device_get_position_double (device, &px, &py);
+ gdk_device_get_position (device, &px, &py);
x_root = round (px) + dx;
y_root = round (py) + dy;
GtkNotebook *dest_notebook = NULL;
double x, y;
- gdk_device_get_position_double (gdk_drag_get_device (drag), &x, &y);
+ gdk_device_get_position (gdk_drag_get_device (drag), &x, &y);
g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
priv->detached_tab->child, round (x), round (y), &dest_notebook);
GtkNotebook *dest_notebook = NULL;
double x, y;
- gdk_device_get_position_double (gdk_drag_get_device (drag), &x, &y);
+ gdk_device_get_position (gdk_drag_get_device (drag), &x, &y);
g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
priv->detached_tab->child, round (x), round (y), &dest_notebook);
event->any.send_event = TRUE;
event->crossing.child_surface = g_object_ref (surface);
event->crossing.time = GDK_CURRENT_TIME;
- gdk_device_get_position_double (device,
- &event->crossing.x_root,
- &event->crossing.y_root);
+ gdk_device_get_position (device,
+ &event->crossing.x_root,
+ &event->crossing.y_root);
gdk_surface_get_device_position (surface,
device,
&event->crossing.x,
GdkDevice *pointer;
pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (priv->display));
- gdk_device_get_position_double (pointer, &px, &py);
+ gdk_device_get_position (pointer, &px, &py);
return gdk_display_get_monitor_at_point (priv->display, round (px), round (py));
}
pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (priv->display));
- gdk_device_get_position_double (pointer, &px, &py);
+ gdk_device_get_position (pointer, &px, &py);
monitor = gdk_display_get_monitor_at_point (priv->display, round (px), round (py));
x = round (px) - w / 2;